package br.ufmg.ubicomp.droidguide.common;

import java.util.ArrayList;
import java.util.List;

import br.ufmg.ubicomp.droidguide.eventservice.DroidGuideRemoteService;

public class DroidGuideUser extends DroidGuideEntity{

	private User user;
	private Device device;
	/**
	 * list of subscribed services
	 */
	private List<DroidGuideRemoteService> services = new ArrayList<DroidGuideRemoteService>();

	public User getUser() {
		return user;		
	}
	public void setUser(User user) {
		this.user = user;
	}
	public Device getDevice() {
		return device;
	}
	public void setDevice(Device device) {
		this.device = device;
	}
	
	public void addService(DroidGuideRemoteService s)
	{
		services.add(s);
	}
	
	public void removeService(DroidGuideRemoteService s)
	{
		services.remove(s);
	}
	
	public List<DroidGuideRemoteService> getServices() {
		return services;
	}
	
	
}